package com.yzk.train.${module}.response;

import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.annotation.JSONField;
<#list typeSet as type>
<#if type=='Date'>
import java.util.Date;
</#if>
<#if type=='BigDecimal'>
import java.math.BigDecimal;
</#if>
</#list>
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class ${Domain}QueryResp {

    <#list fieldList as field>
    // ${field.comment}
    <#if field.javaType=='Date'>
        <#if field.type=='time'>
            @JSONField(format = "HH:mm")
        <#elseif field.type=='date'>
    @JSONField(format = "yyyy-MM-dd")
        <#else>
            @JSONField(format = "yyyy-MM-dd HH:mm")
        </#if>
    </#if>
    <#if field.name=='id' || field.name?ends_with('_id')>
    @JSONField(serializeFeatures = JSONWriter.Feature.BrowserCompatible)
    </#if>
    private ${field.javaType} ${field.nameHump};
    </#list>
}
